﻿﻿// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.

namespace Nardax.Azure.ServiceBus
{
    public class SubscriptionClientFactory : ISubscriptionClientFactory
    {
        public IMessageReceiver CreateSubscriptionClient(string connectionString, string topicPath, string subscriptionName)
        {
            var subscriptionClientWrapper = new SubscriptionClientWrapper(connectionString, topicPath, subscriptionName);
            return subscriptionClientWrapper;
        }

        public IMessageReceiver CreateDeadLetterMessageReceiver(string connectionString, string path)
        {
            var messageReceiver = new MessageReceiverWrapper(connectionString, path);
            return messageReceiver;
        }
    }
}
